package com.example.pojo;

import java.util.Date;
import java.util.List;

/**
 * 问答记录
 */
public class ChatRecord {
    /**
     * 会话唯一标识
     */
    private String id;
    /**
     * 会话开始时间
     */
    private Date time;
    /**
     *  标题，可用于存储用户的第一句话或者由大模型总结的标题
     */
    private String title;

    private List<ChatMessage> messages;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<ChatMessage> getMessages() {
        return messages;
    }

    public void setMessages(List<ChatMessage> messages) {
        this.messages = messages;
    }
}
